import { ApiProperty } from '@nestjs/swagger'
import { IsNotEmpty } from 'class-validator'

export class LoginDto {
  @IsNotEmpty()
  @ApiProperty({ example: 'minghuang' })
  username: string

  @IsNotEmpty()
  @ApiProperty({ example: '123456' })
  password: string
}
